import request from '@/utils/request'

// 查询手机号验证码列表
export function listPhoneAndCode(query) {
    return request({
        url: '/system/phoneAndCode/list',
        method: 'get',
        params: query
    })
}

// 查询手机号验证码详细
export function getPhoneAndCode(id) {
    return request({
        url: '/system/phoneAndCode/' + id,
        method: 'get'
    })
}

// 新增手机号验证码
export function addPhoneAndCode(data) {
    return request({
        url: '/system/phoneAndCode',
        method: 'post',
        data: data
    })
}

// 修改手机号验证码
export function updatePhoneAndCode(data) {
    return request({
        url: '/system/phoneAndCode',
        method: 'put',
        data: data
    })
}

// 删除手机号验证码
export function delPhoneAndCode(id) {
    return request({
        url: '/system/phoneAndCode/' + id,
        method: 'delete'
    })
}
